﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using System.Diagnostics;
using System.Data;

namespace Hdt.TransOcean.Presentation.Report
{
    public partial class rptBaoCaoBanHang : DevExpress.XtraReports.UI.XtraReport
    {
        //public DateTime FromDate { get { return (DateTime)Parameters["@FromDate"].Value; } }
        //public DateTime ToDate { get { return (DateTime)Parameters["@ToDate"].Value; } }

        public rptBaoCaoBanHang()
        {
            InitializeComponent();
            Name = "BC BAN HANG";
            DisplayName = " BAO CAO BAN HANG";
            this.Parameters["FromDate"].Value="2012-05-01";
            this.Parameters["ToDate"].Value = "2013-05-01";
            //this.DataSource=
            //this.dataFiller = dataFiller;
            //UpdateControls();
            //this.uspRpt_BaocaoBanHangTableAdapter.Fill(this.uspRpt_BaocaoBanHangTableAdapter.
        }

        public class TableAdapterDataFiller : ICustomControlReportDataFiller
        {
            public void Fill(rptBaoCaoBanHang report)
            {
                //report.uspRpt_BaocaoBanHangTableAdapter.Fill(report.FromDate,report.ToDate);
            }
        }

        public interface ICustomControlReportDataFiller
        {
            void Fill(Hdt.TransOcean.Presentation.Report.rptBaoCaoBanHang report);
        }

        private void rptBaoCaoBanHang_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            int i;
        }

    }
}
